<template>
  <div class="noData">
    <div class='content'>
      <div class='noDataIconBox noData_bg'>
        <image class='noDataIcon' src="https://rzico.oss-cn-shenzhen.aliyuncs.com/none-data/kongneirong.png"></image>
      </div>
      <text class='noDataText'>{{ noDataText }}</text>
	  <text style="font-size: 24px;color: #B0ADBC;margin-top:10px" v-if="subTitle">{{subTitle}}</text>
      <div class="btn noDataButton" @click="noDataClick" v-if="haveBtn">
        <text class="noDataButton-text">去逛逛</text>
      </div>
    </div>
  </div>
</template>

<script>
export default {
  data() {
    return {}
  },
  props: {

    haveBtn: {
      default: false
    },
    btnUrl: {
      default: ""
    },
    noDataText: {
      default: ""
    },
	subTitle:{
	  default:''
	}
  },
  methods: {
    noDataClick() {
      //跳转到首页
      eeui.openPage({
        url: 'root://pages/index.js',
        statusBarType: 'immersion',
        statusBarStyle: false
      })
      // eeui.closePage()
    }
  }
}
</script>

<style scoped>
.noData {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin: 60px 0;
}

.loading {
  width: 120px;
  height: 120px;
}

.noDataImg {
  width: 200px;
  height: 200px;
}

.noDataIconBox {
  width: 230px;
  height: 230px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
}

.noDataIcon {
  opacity: 0.7;
  width: 200px;
  height: 200px;
}

.noDataText {
  font-size: 26px;
  color: #666666;
  margin-top: 10px;
}

.noDataButton {
  margin-top: 30px;
  background-image: linear-gradient(to top, #ff560c, #fe8003);
  height: 60px;
  width: 230px;
  border-radius: 30px;
}

.noDataButton-text {
  line-height: 60px;
  text-align: center;
  font-size: 30px;
  font-weight: normal;
  color: #fff;
}


</style>
